﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _180FrameWork.CustControls
{
    public class CustTreeViewItem
    {
        private string _TreeID;
        private CustTreeViewItem _Parent;
        private bool _Checked;
        private string _Caption;
        private bool _Final;
        private object _Tag;
        private IList<CustTreeViewItem> _ChildList;

        public string TreeID { get { return this._TreeID; } set { this._TreeID = value; } }
        public CustTreeViewItem Parent { get { return this._Parent; } set { this._Parent = value; } }
        public bool Checked { get { return this._Checked; } set { this._Checked = value; } }
        public string Caption { get { return this._Caption; } set { this._Caption = value; } }
        public bool Final { get { return this._Final; } set { this._Final = value; } }
        public object Tag { get { return this._Tag; } set { this._Tag = value; } }
        public IList<CustTreeViewItem> ChildList
        {
            get
            {
                if (_ChildList == null)
                    _ChildList = new List<CustTreeViewItem>();
                return _ChildList;
            }
            set { _ChildList = value; }
        }

    }
}
